package com.onion.utils.utils.http;

public class HttpException extends RuntimeException{

    private int code;
    private String message;

    public HttpException(String message){
        super(message);
        this.code = -1;
    }

    public HttpException(int code, String message){
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

}
